# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
# Contributor: SmackleFunky <smacklefunky@optusnet.com.au>

pkgname=bsd-games
pkgver=3.3
pkgrel=1
pkgdesc='Linux port of the collection of BSD command line games'
url='https://sourceforge.net/projects/bsd-games'
arch=('loong64' 'x86_64')
license=('BSD')
depends=('ncurses' 'systemd')
optdepends=('words: for hangman')
source=("https://downloads.sourceforge.net/sourceforge/bsd-games/${pkgname}-${pkgver}.tar.gz")
sha256sums=('78bfdf7f4e1f61ed42ad1209ef52520b89a583bd511e9606b8162f813078048d')

build() {
    cd "$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir" install
    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
